<?php
defined('_JEXEC') or die('Restricted access');

jimport('joomla.application.component.controller');

class PetShopSVBappControllerPetShopSVBapp extends JController
{

	function setUsuario()
	{
		// Initialise variables.
		//$app	= JFactory::getApplication();
		$model	= $this->getModel('PetShopSVBapp', 'PetShopSVBappModel');

		// Get the user data.
		$requestData = JRequest::getVar('username');
		print_r($requestData);
		/*
		// Validate the posted data.
		$form	= $model->getForm();
		if (!$form) {
			JError::raiseError(500, $model->getError());
			return false;
		}
		$data	= $model->validate($form, $requestData);
		*/

		//$app->enqueueMessage($errors[$i]->getMessage(), 'warning');
		$this->setMessage(JText::_('Teste Feito'));
		$this->setRedirect(JRoute::_('index.php?option=com_petshopsvbapp', false));

		return true;
	}
}